]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
background: Remove a couple of unused variables
authorRui Matos <tiagomatos@gmail.com>
Mon, 30 Jan 2017 12:28:16 +0000 (13:28 +0100)
committerRui Matos <tiagomatos@gmail.com>
Tue, 31 Jan 2017 12:48:11 +0000 (13:48 +0100)
Nothing uses these.

https://bugzilla.gnome.org/show_bug.cgi?id=777934

js/ui/background.js

index 622a59a6cbffdd711d3b9ed8f4adb39abd82469d..9b36029648ee263a14e8ac824576940edb1ba666 100644 (file)
@@ -142,7 +142,6 @@ const BackgroundCache = new Lang.Class({
     Name: 'BackgroundCache',
 
     _init: function() {
-        this._pendingFileLoads = [];
         this._fileMonitors = {};
         this._backgroundSources = {};
         this._animations = {};
@@ -377,11 +376,9 @@ const Background = new Lang.Class({
 
         let cache = Meta.BackgroundImageCache.get_default();
         let numPendingImages = files.length;
-        let images = [];
         for (let i = 0; i < files.length; i++) {
             this._watchFile(files[i]);
             let image = cache.load(files[i]);
-            images.push(image);
             if (image.is_loaded()) {
                 numPendingImages--;
                 if (numPendingImages == 0)